//
//  PKSMSUtils.swift
//  Panku
//
//  Created by mac on 2017/2/8.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit
import ReactiveSwift
import ReactiveCocoa
import Result

enum PKSMSGetCodeMethod {
    case sms //文本方式
    case voice //语音方式
}

protocol PKSMSUtils {
    
    //发送验证码
    func getVerificationCode(by: PKSMSGetCodeMethod, phoneNumber: String!, zone: String!) ->SignalProducer<String,NSError>
    
    //提交验证码
    func commitVerificationCode(code: String!, phoneNumber: String!, zone: String!) -> SignalProducer<String,NSError>
    
    // factory
    static func make() -> PKSMSUtils
}
